package com.demo5;

/**
 * Created by Administrator on 2017/3/26.
 */
class A {
    A() {
        System.out.println("调用A的构造函数");
    }
}

class B extends A {
    B() {
        System.out.println("调用B的构造函数");
    }
}

class C extends B {
    C() {
        System.out.println("调用C的构造函数");
    }
}

public class JiCheng2 {
    public static void main(String[] args) {
        C c = new C();
    }
}
